#ifndef ACCEPTREQUEST_H
#define ACCEPTREQUEST_H

#include <QDialog>
#include "msg.h"
#include <QTcpSocket>
#include <QString>


namespace Ui {
class AcceptRequest;
}

class AcceptRequest : public QDialog
{
    Q_OBJECT

public:
    explicit AcceptRequest(QWidget *parent = 0);
    void SetInfo(QTcpSocket * s,QString u);
    void SetAccount(QString ac);
    ~AcceptRequest();

private slots:
    void SendSlot();
private:
    Ui::AcceptRequest *ui;
    QString username;
    QString account;
    QTcpSocket * socket = NULL;
};

#endif // ACCEPTREQUEST_H
